﻿/* Copyright(C) 2006-2008 Dave Sexton  *
 * http://www.codeplex.com/aip         *
 * http://www.codeplex.com/aip/license *
 ***************************************/
using System;
using System.Collections.Generic;
using System.Text;

namespace DaveSexton.Web.Controls
{
	/// <summary>
	/// Specifies where <see cref="AutoInputProtection"/> will store challenges on the server.
	/// </summary>
	/// <seealso cref="Configuration.AutoInputProtectionSection.PersistenceMode"/>
	/// <seealso cref="AutoInputProtection.PersistenceMode"/>
	public enum AutoInputProtectionPersistenceMode
	{
		/// <summary>
		/// Indicates that the ASP.NET <see cref="System.Web.Caching.Cache"/> will be used.  This is the default.
		/// </summary>
		Cache,
		/// <summary>
		/// Indicates that ASP.NET session state will be used.
		/// </summary>
		/// <remarks>
		/// <para>
		/// This setting is not the default used by AIP but it is recommended.
		/// </para>
		/// <para>
		/// <include file='comments.xml' path='//text[@id="PersistenceMode.Session-Reccomendation"]/child::node()'/>
		/// See the example in <see cref="AutoInputProtection"/>.
		/// </para>
		/// <include file='comments.xml' path='//para[@id="PersistenceMode_Session_Timeouts"]'/>
		/// </remarks>
		Session
	}
}
